package com.bfs.service.order;

import cfk.pojo.order.CustQueryReq;
import cfk.pojo.order.CustQueryResp;
import cfk.pojo.order.OrderQueryReq;
import cfk.pojo.order.OrderQueryResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author baohuajie
 * @description:
 * @date 2020/11/136:15 PM
 */
@FeignClient(name = "cfk-service",contextId = "cfk-service-order")
public interface IOrderServiceCfkClient {

    /**
     * 建客接口
     * @param req
     * @return
     *
     * 通过/cfk/order/queryLoanByLoanId路径找到 cfk-service的controller进行处理，
     * 如果/cfk/order/queryLoanByLoanId 和 cfk-service的controller对应不上就会报404错误
     *
     */
    @RequestMapping(value = "/cfk/order/queryLoanByLoanId", method = RequestMethod.POST)
    OrderQueryResp queryLoanByLoanId(@RequestBody OrderQueryReq req);

}
